package yf.mall.dysdk.model.request.text;

import com.yf.utils.HttpTookit;

import java.util.HashMap;
import java.util.Map;

/**
 * 违禁词检测接口
 * https://api.chinaz.com/ApiDetails/Violate
 */
public class DyTextRequest {

    private String url = "https://apidatav2.chinaz.com/single/violate";

    private String key = "6fddac591adb45dfa646be18ced1a782";


    public String parse(String text){
        Map map = new HashMap();
        map.put("key",key);
        map.put("text",text);
        String res =  HttpTookit.doPost(url,map);
        return res;
    }

}
